package com.swust.book_shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @TableName book_review
 */
@TableName(value ="book_review")
@Data
public class BookReview implements Serializable {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 书本评论
     */
    @TableField(value = "book_review")
    private String bookReview;

    /**
     * 和book_info的id关联
     */
    @TableField(value = "book_review_id")
    private Integer bookReviewId;

    /**
     * 和user_info的id关联
     */
    @TableField(value = "speaker_id")
    private Integer speakerId;

    /**
     * 评论父id(默认-1顶级评论)
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 
     */
    @TableField(value = "is_deleted")
    private String isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}